package com.freedom.sql.jdbc.request;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import com.freedom.sql.jdbc.netty.MyNioSocketChannel;
import com.freedom.sql.jdbc.response.DatabasePacket;

public class QuitPacket {
	private static final Logger logger = LogManager.getLogger(QuitPacket.class);
	private MyNioSocketChannel channel;
	private String content;
	private int packetSeq;

	public QuitPacket(int _packetSeq, MyNioSocketChannel _channel, String _content) {
		packetSeq = _packetSeq;
		channel = _channel;
		content = _content;
	}

	public void handle() throws Exception {
		// 开始处理,发送数据库给client
		new DatabasePacket(packetSeq,channel,content).handle();
	}
}
